package com.xy.dp.adapter;

public class ObjectAdapter implements ITarget {
    private Deer deer;

    public ObjectAdapter(Deer deer) {
        this.deer = deer;
    }
    @Override
    public void run() {
        deer.run();
    }

    @Override
    public void fly() {
        System.out.println("deer fly");
    }
}
